package com.wrx.server.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "userRegister对象",description = "")
public class UserRegisterParam {
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @ApiModelProperty(value = "昵称",required = true)
    private String netname;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "确认密码",required = true)
    private String checkpassword;
    @ApiModelProperty(value = "性别",required = true)
    private String sex;
    @ApiModelProperty(value = "年龄",required = true)
    private int age;
    @ApiModelProperty(value = "邮箱",required = true)
    private String email;
    @ApiModelProperty(value = "电话",required = true)
    private String telephone;
    @ApiModelProperty(value = "出生地",required = true)
    private String address;
    @ApiModelProperty(value = "生日",required = true)
    private String birthday;
    @ApiModelProperty(value = "验证码",required = true)
    private String code;

    public UserRegisterParam(String username, String netname, String password, String checkpassword, String sex, int age, String email, String telephone, String address, String birthday, String code) {
        this.username = username;
        this.netname = netname;
        this.password = password;
        this.checkpassword = checkpassword;
        this.sex = sex;
        this.age = age;
        this.email = email;
        this.telephone = telephone;
        this.address = address;
        this.birthday = birthday;
        this.code = code;
    }

//    public UserRegisterParam(String username, String netname, String password, String checkpassword, String sex, String email, String telephone, String address, String birthday, String code) {
//        this.username = username;
//        this.netname = netname;
//        this.password = password;
//        this.checkpassword = checkpassword;
//        this.sex = sex;
//        this.email = email;
//        this.telephone = telephone;
//        this.address = address;
//        this.birthday = birthday;
//        this.code = code;
//    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getCheckpassword() {
        return checkpassword;
    }

    public void setCheckpassword(String checkpassword) {
        this.checkpassword = checkpassword;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNetname() {
        return netname;
    }

    public void setNetname(String netname) {
        this.netname = netname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
